package com.wanho.java156.service;

import com.wanho.java156.mapper.PermissionMapper;
import com.wanho.java156.mapper.RoleMapper;
import com.wanho.java156.po.Role;
import com.wanho.java156.po.RoleExample;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleService {
    @Autowired
    private RoleMapper roleMapper ;

    /**
     * 查询 所有的角色 及 权限
     * @return
     */
    public List<Role> selectAllRoleAndPerm(){
        return roleMapper.selectAllRoleAndPerm() ;
    }
}
